<!--# layout("/common/layout.html",{"jsBase":"/js/cms/enterprise/"}){ -->
<form class="layui-form" id="addForm">
<div class="layui-tab" lay-filter="test">
    <ul class="layui-tab-title">
        <li class="layui-this">企业基本信息</li>
        <li>年度营收和纳税信息</li>
    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
    <fieldset class="layui-elem-field">
        <legend>企业基本信息</legend>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">企业名称<span style="color: red">*</span></label>
				<div class="layui-input-inline">
					<input type="text" name="enterpriseName" lay-verify="required" class="layui-input" style="width: 732px">
				</div>
            </div>
        </div>
    </div>
        <div class="layui-row">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">企业详细通讯地址<span style="color: red">*</span></label>
                    <div class="layui-input-inline">
                        <input type="text" name="postalAddress" class="layui-input" lay-verify="required" style="width: 732px">
                    </div>
                </div>
            </div>
        </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">统一社会信用代码<span style="color: red">*</span></label>
				<div class="layui-input-inline">
					<input type="text" name="organizationCode" class="layui-input" lay-verify="required" >
				</div>
            </div>
            <div class="layui-inline">
            <label class="layui-form-label">注册资金(万元)<span style="color: red">*</span></label>
				<div class="layui-input-inline">
					<input type="text" name="registeredCapital" class="layui-input" lay-verify="required|number">
				</div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">注册资金币种<span style="color: red">*</span></label>
				<div class="layui-input-inline">
                    <layui:simpleDictSelect style='layui-input-inline' type="monetaryCurrencys"
                                            id="monetaryCurrency" name="monetaryCurrency" value="" layVerify="required" />
				</div>
            </div>
            <div class="layui-inline">
            <label class="layui-form-label">营业执照注册号<span style="color: red">*</span></label>
				<div class="layui-input-inline">
					<input type="text" name="registrationNumber" class="layui-input" lay-verify="required">
				</div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">成立日期<span style="color: red">*</span></label>
				<div class="layui-input-inline">
					<input type="text" name="dateEstablishment" class="layui-input input-date" lay-verify="required" >
				</div>
            </div>
            <div class="layui-inline">
            <label class="layui-form-label">企业法人<span style="color: red">*</span>	</label>
				<div class="layui-input-inline">
					<input type="text" name="enterpriseLegalPerson" class="layui-input" lay-verify="required" >
				</div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">手机号码<span style="color: red">*</span></label>
				<div class="layui-input-inline">
					<input type="text" name="ephoneNumber" class="layui-input" lay-verify="required">
				</div>
            </div>
            <div class="layui-inline">
            <label class="layui-form-label">企业联系电话<span style="color: red">*</span></label>
				<div class="layui-input-inline">
					<input type="text" name="enterpriseTelephone" class="layui-input" lay-verify="required">
				</div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">企业邮箱<span style="color: red">*</span></label>
				<div class="layui-input-inline">
					<input type="text" name="mail" class="layui-input" lay-verify="required" >
				</div>
            </div>
        </div>
    </div>
    </fieldset>
    <fieldset class="layui-elem-field">
        <legend>企业名录和名额信息</legend>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">企业名录年度<span style="color: red">*</span></label>
                <div class="layui-input-inline">
                    <input type="text" name="enterpriseDirectory" class="layui-input" lay-verify="required" >
                </div>
            </div>
            <div class="layui-inline">
            <label class="layui-form-label">企业名录类别<span style="color: red">*</span></label>
				<div class="layui-input-inline">
                    <layui:simpleDictSelect style='layui-input-inline' type="orgType"
                                            id="directoryEnterprises" name="directoryEnterprises" value="" layVerify="required" />
				</div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">企业名额<span style="color: red">*</span></label>
                <div class="layui-input-inline">
                    <input type="text" name="businessQuota" class="layui-input"  >
                </div>
            </div>
        </div>
    </div>

    </fieldset>
    <fieldset class="layui-elem-field">
        <legend>企业联络信息</legend>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">企业承办部门负责人<span style="color: red">*</span></label>
				<div class="layui-input-inline">
					<input type="text" name="personCharge" class="layui-input" lay-verify="required" >
				</div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">经办人<span style="color: red">*</span></label>
                <div class="layui-input-inline">
                    <input type="text" name="agent" class="layui-input" lay-verify="required" >
                </div>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">企业承办部门负责人手机号码<span style="color: red">*</span></label>
                <div class="layui-input-inline">
                    <input type="text" name="phoneNumber" class="layui-input" lay-verify="required" >
                </div>
            </div>
            <div class="layui-inline">
            <label class="layui-form-label">经办人手机号码<span style="color: red">*</span></label>
				<div class="layui-input-inline">
					<input type="text" name="aphoneNumber" class="layui-input" lay-verify="required" >
				</div>
            </div>
        </div>
    </div>
        <div class="layui-row">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">企业承办部门负责人联系电话<span style="color: red">*</span></label>
                    <div class="layui-input-inline">
                        <input type="text" name="pcontactNumber" class="layui-input" lay-verify="required" >
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">经办人联系电话<span style="color: red">*</span></label>
                    <div class="layui-input-inline">
                        <input type="text" name="acontactNumber" class="layui-input" lay-verify="required" >
                    </div>
                </div>
            </div>
        </div>
    </fieldset>
    <layui:submitButtons id="addButton" />
        </div>
        <div class="layui-tab-item">
            <fieldset class="layui-elem-field">
                <legend>年度营收和纳税信息 </legend>
            <div class="layui-row">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">年度<span style="color: red">*</span></label>
                        <div class="layui-input-inline">
                            <input type="text" name="year" class="layui-input" lay-verify="required" >
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">年营销收入(元)<span style="color: red">*</span></label>
                        <div class="layui-input-inline">
                            <input type="text" name="marketingRevenue" class="layui-input"  lay-verify="required">
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-row">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">国税(元)<span style="color: red">*</span></label>
                        <div class="layui-input-inline">
                            <input type="text" name="nationalTax" class="layui-input" lay-verify="required">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">地税(元)<span style="color: red">*</span></label>
                        <div class="layui-input-inline">
                            <input type="text" name="landTax" class="layui-input"lay-verify="required" >
                        </div>
                    </div>
                </div>
            </div>
            </fieldset>
        </div>
    </div>
</div>
</form>


<!--#} -->
<script>
layui.use(['add'], function(){
    var enterpriseAdd = layui.add
    enterpriseAdd.init();
});

layui.use(['revenue'], function(){
    var enterpriseEdit = layui.revenue
    enterpriseEdit.init();
});

layui.use(['element', 'table'], function(){
    var element = layui.element;
    var table = layui.table;
    element.on('tab(test)', function (data) {
        if(data.index ==0) {
            table.reload('enterpriseTable');
        }
        else if(data.index == 1) {
            table.reload('enterpriseTable');
        }
    });
});
</script>
